//index.vue
<template>
    <div class='home'>
        <div class='title'>每日一笑</div>
    </div>
</template>
<style lang='less'>
@background:"./../assets/images/backgroud.jpg";  
    .title{
        color: #dae925;
        font-size: 40px;
        text-align: center;
        line-height: 120px;
        font-family: cursive;
    }
 .home{
    width:100%;
    height:100%;
    background:url(@background);
    background-size:100%;
    }
</style>